package com.study.springboot_25_mqkafka.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/13 8:53 下午
 */

@Component
@RocketMQMessageListener(topic = "order_id", consumerGroup = "rocketmq_group")
public class MessageListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String id) {
        System.out.println("已经完成短信业务的发送任务-id：" + id);
    }
}
